<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆</title>
    <link rel="stylesheet" href="__css__/main.css">
    <link rel="stylesheet" href="__css__/bootstrap.min.css">
    <script src="__require__"></script>
    <script src="__main__"></script>
</head>
<body>
    <div id="center" ng-controller="ctrl">
        <form action="" method="post" class="form-horizontal" role="form">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title goLoginTitle">登陆</h3>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">姓名:</label>
                        <div class="col-sm-10">
                            <input type="text" name="name" class="form-control" value="" title="" required="required" oninvalid="setCustomValidity('登陆名不能为空')" oninput="setCustomValidity('')">
                        </div>
                    </div>

                </div>


                <div class="panel-body">
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">密码:</label>
                        <div class="col-sm-10">
                            <input type="password" name="password"  class="form-control" value="" title="" required="required" oninvalid="setCustomValidity('密码不能为空')" oninput="setCustomValidity('')">
                        </div>
                    </div>

                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button type="submit" class="btn btn-primary goLogin">登陆</button>
                        <a href="{:url('index/registered')}" id="reg">
                        <button type="button" class="btn btn-success goReg" ng-click="reg()">去注册</button></a>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <script>
        require(['angular'],function (angular) {
            var app=angular.module('center',[]);
            app.controller('ctrl',['$scope',function ($scope) {
                $scope.name='32';
                $scope.reg=function () {
                }
            }]);
            angular.bootstrap(document.getElementById('center'),['center']);
        })


    </script>
</body>
</html>